package io.renren.modules.jxgk.service.impl;

import io.renren.modules.jxgk.dao.StudentInfoDao;
import io.renren.modules.jxgk.entity.StudentInfoEntity;
import io.renren.modules.jxgk.service.StudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class StudentInfoServiceImpl implements StudentInfoService{
    @Autowired
    StudentInfoDao studentInfoDao;
    public List<StudentInfoEntity> queryList(Map<String, Object> map){
        return studentInfoDao.queryList(map);
    }
    @Override
    public List<StudentInfoEntity> getStudentInfoByClass(Map<String, Object> map){
        return  studentInfoDao.getStudentInfoByClass(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  studentInfoDao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        studentInfoDao.deleteBatch(termIds);
    }
    public void save(StudentInfoEntity ste){
        studentInfoDao.save(ste);
    }
    public StudentInfoEntity queryObject(String index){
        return studentInfoDao.queryObject(index);
    }
    public void update(StudentInfoEntity ste){
        studentInfoDao.update(ste);
    }

    @Override
    public List<StudentInfoEntity> getStudentInfoList(String searching) {
        HashMap map = new HashMap();

        map.put("searching",searching);
        return studentInfoDao.getStudentInfoList(map);
    }
}
